/*
 * File         : signal.c
 * This file is part of POSIX-RTOS
 * COPYRIGHT (C) 2015 - 2016, DongHeng
 * 
 * Change Logs:
 * DATA             Author          Note
 * 2015-12-11       DongHeng        create
 */

#include "signal.h"
#include "sched.h"
#include "stdlib.h"

#ifndef SIG_EVENT_TABLE
    #define SIG_EVENT_TABLE     32
#else
    #if SIG_EVENT_TABLE < 8
        #error "SIG_EVENT_TABLE is too small"
    #endif
#endif
   
/*@{*/    


/*@}*/

/**
 * __sigevent_handle - handle the thread signal queue data
 */
STATIC void* __sigevent_handle(void *arg)
{
	return 0;
}

/*
 * signal - register the signal and its generating function
 *
 * @param signum signal number
 * @param handler signal generating function
 *
 * return the result
 */
sighandler_t signal (int signum, sighandler_t handler)
{
	__sigevent_handle(NULL);

	return 0;
}

/**
 *
 */
int sigqueue (pid_t pid, int signo, const union sigval value)
{
	return 0;
}

/**
 *
 */
void signal_init(void)
{
	return ;
}
